#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main() {
	char team[100];
	
	if (scanf("%99s", team) != 1) {
		printf("输入错误\n");
		return 1;
	}
	

	printf("你输入的字符串是: %s\n", team);

	for (int i = strlen(team) - 1; i >= 0; i--) {
		
		if (team[i] == 'U' || team[i] == 'P' || team[i] == 'R' || team[i] == 'E' || team[i] == 'O') {
			continue;
		}
		printf("%c", team[i]);
	}

	return 0;
}